-- GENERATED SPELL FOR [Stormforged Pillager] --


function spell0_29586(pUnit, Event) --@Lightning Charged,Self--
pUnit:FullCastSpellOnTarget(52701,pUnit)
pUnit:RegisterEvent('Sorts_29586', 30324, 1)
end

function Sorts_29586(pUnit, Event)
local choix_sorts_29586 = math.random(0, 0)
if choix_sorts_29586 == 0 then
pUnit:RegisterEvent('spell0_29586', 1, 1)
end
end

function mob29586_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29586', math.random(1500, 3000), 1)
end

function mob29586_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29586_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29586_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29586, 1, 'mob29586_Action')
RegisterUnitEvent(29586, 2, 'mob29586_Leave')
RegisterUnitEvent(29586, 3, 'mob29586_Kill')
RegisterUnitEvent(29586, 4, 'mob29586_Die')
